package com.wxh.bomb.netty.myrpc.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wxh
 */
public class LoginInfo implements Serializable {
    private static final long serialVersionUID = 3609081156971584603L;
    private User user;
    private Date loginTime;
    private String loginIp;
    private long times;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public long getTimes() {
        return times;
    }

    public void setTimes(long times) {
        this.times = times;
    }

    @Override
    public String toString() {
        return String.format("用户信息：%s\n登陆时间：%s\n登陆IP：%s登陆次数：%s", user.toString(), loginTime.toString(), loginIp, loginTime);
    }
}
